package cn.edu.njuit.children.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @TableName sys_weight
 */
@TableName(value ="sys_weight")
@Data
public class Weight implements Serializable {
    /**
     * 编码
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联宝宝
     */
    @TableField(value = "cd_id")
    private Long cdId;

    /**
     * 年龄
     */
    @TableField(value = "cd_age")
    private String cdAge;

    /**
     * 体重
     */
    @TableField(value = "cd_weight")
    private Double cdWeight;

    /**
     * 记录时间
     */
    @TableField(value = "record_time")
    private Date recordTime;

    /**
     * 记录天数
     */
    @TableField(value = "record_day")
    private Integer recordDay;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
